



#ifndef HITDATA_H
#define HITDATA_H

#include "Vec4.h"


struct HitData
{
	/// distance along ray from origin to point of intersection (POI)
	float m_t; 
	
	/// whether the ray intersects the body or not
	bool m_intersect;
	
	/// POI position vector 
	Vec4 m_intersectionPt;

	/// surface normal at POI
	Vec4 m_normal;

	/// texture coordinates at POI
	float m_u;
	float m_v;
	
};


#endif //HITDATA_H